Platform Explorer / Nuxeo Platform 2023.10

Contribution org.nuxeo.ecm.platform.task.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.ecm.platform.task.lifecycle inside nuxeo-platform-task-core-2023.10.13.jar /OSGI-INF/task-lifecycle-contrib.xml

Extension Point

Extension point lifecycle of component LifeCycleService.

Registration Order

5
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <lifecycle defaultInitial="opened" name="task">
          <transitions>
            <transition destinationState="ended" name="end">
              <description>End the task</description>
            </transition>
            <transition destinationState="cancelled" name="cancel">
              <description>Cancel the task</description>
            </transition>
          </transitions>
          <states>
            <state description="Task is open." name="opened">
              <transitions>
                <transition>end</transition>
                <transition>cancel</transition>
              </transitions>
            </state>
            <state description="task has been ended" name="ended">
            </state>
            <state description="Task is cancelled" name="cancelled">
            </state>
          </states>
        </lifecycle>

    Cancel the task

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <lifecycle defaultInitial="opened" name="task">
      <transitions>
        <transition destinationState="ended" name="end">
          <description>End the task</description>
        </transition>
        <transition destinationState="cancelled" name="cancel">
          <description>Cancel the task</description>
        </transition>
      </transitions>
      <states>
        <state description="Task is open." name="opened">
          <transitions>
            <transition>end</transition>
            <transition>cancel</transition>
          </transitions>
        </state>
        <state description="task has been ended" name="ended">
        </state>
        <state description="Task is cancelled" name="cancelled">
        </state>
      </states>
    </lifecycle>

  </extension>